package com.freedom.start.modules.act.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

/**
 * @Author: zhenggang.liu
 * @Date: 2019/12/24 15:41
 */
@Component
public class DeptManagerListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("DeptManagerListener is accessed");
        delegateTask.setAssignee("10002");
    }
}
